<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>rotate1</title>
	<style type="text/css">
		/* entire container, keeps perspective */
.flip-container {
	perspective: 1000;
	transform-style: preserve-3d;
}
	/*  UPDATED! flip the pane when hovered */
	.flip-container:hover .back {
		transform: rotateY(0deg);
	}
	.flip-container:hover .front {
	    transform: rotateY(180deg);
	}

.flip-container, .front, .back {
	width: 320px;
	height: 200px;
}

/* flip speed goes here */
.flipper {
	position: relative;
	transition: 0.6s;
	transform-style: preserve-3d;
}

/* hide back of pane during swap */
.front, .back {
	backface-visibility: hidden;
	transition: 0.6s;
	transform-style: preserve-3d;
	position: absolute;
/*	top: 0;
	left: 0;*/
}

/*  UPDATED! front pane, placed above back */
.front {
	z-index: 2;
	transform: rotateY(0deg);
	background:yellow;
}

/* back, initially hidden pane */
.back {
	transform: rotateY(-180deg);
	background:red;
}

	</style>
</head>
<body>
	<div class="flip-container">
	<div class="flipper">
		<div class="front">
			<p>
				前面内容，鼠标移到这，试试
			</p>
		</div>
		<div class="back">
			<table style="width:100%">
				<tr>
					<td>用户名</td>
					<td><input type="text"/></td>
				</tr>
				<tr>
					<td>密码</td>
					<td><input type="text"/></td>
				</tr>
			</table>
		</div>
	</div>
</div>
</body>
</html>